<h1>Listing candidates</h1>

<table>
  <tr>
    <th>Org</th>
    <th>Name</th>
    <th>Sex</th>
    <th>Photo</th>
    <th>Birthday</th>
    <th>Startwork day</th>
    <th>Last edu</th>
    <th>Last edu day</th>
    <th>Last degree</th>
    <th>Last degree day</th>
    <th>Study subject</th>
    <th>Now job</th>
    <th>Now job day</th>
    <th>Will job</th>
    <th>Typenote</th>
    <th>Note</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @candidates.each do |candidate| %>
  <tr>
    <td><%= candidate.org_id %></td>
    <td><%= candidate.name %></td>
    <td><%= candidate.sex %></td>
    <td><%= candidate.photo %></td>
    <td><%= candidate.birthday %></td>
    <td><%= candidate.startwork_day %></td>
    <td><%= candidate.last_edu %></td>
    <td><%= candidate.last_edu_day %></td>
    <td><%= candidate.last_degree %></td>
    <td><%= candidate.last_degree_day %></td>
    <td><%= candidate.study_subject %></td>
    <td><%= candidate.now_job %></td>
    <td><%= candidate.now_job_day %></td>
    <td><%= candidate.will_job %></td>
    <td><%= candidate.typenote %></td>
    <td><%= candidate.note %></td>
    <td><%= link_to 'Show', candidate %></td>
    <td><%= link_to 'Edit', edit_candidate_path(candidate) %></td>
    <td><%= link_to 'Destroy', candidate, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Candidate', new_candidate_path %>
